package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 功能：竞赛表
 * 作者：刘涵茹
 * 日期：2024/3/15 10:12
 */
@Data
public class News {
    @TableId(type = IdType.AUTO)//自增
    private Integer id;//不用管，自动递增

    private String title;
    private String description;
    private String content;

    private String startime;
    private String endtime;

    private String sign;
    private Integer authorid;
    private Integer num;
    private String createdtime;

    private String pay;
    private String money;

    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private String contintime;
}
